package com.nyist.springcloud.dao;

import com.nyist.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author yangxiaogen
 * @date 2021/1/21 14:28
 */
@Mapper
public interface PaymentDao {

    /**
     * 插入一个流水号
     * @author yangxiaogen
     * @date 2021/1/25 11:45
     * @param payment
     * @return int
     */
    int insertPay(Payment payment);

    List<Payment> queryPayments();

    Payment queryPaymentById(String id);

    Payment queryPaymentByName(String name);

}
